<div class="panel panel-default">
    <div class="panel-heading">
        Danh sách thành viên quản trị
    </div>
    <!-- /.panel-heading -->
    <?php
    yii::app()->user->hasFlash('contact');
    echo Yii::app()->user->getFlash('contact');
    ?>
    <div class="panel-body">
        <div class="table-responsive">
            <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                <thead>
                <tr>
                    <th>id</th>
                    <th>Edit</th>
                    <th>DEL</th>
                    <th>iamge</th>
                    <th>username</th>
                    <th>password</th>
                    <th>email</th>
                    <th>lever</th>
                </tr>
                </thead>
                <tbody>
                <?php
                    foreach($listadmin as $key=>$value){
                ?>
                <tr>
                    <th><?php echo $value->id; ?></th>
                    <th><a href="<?php echo Yii::app()->createUrl('admin/admin/preedit',array('id'=>$value->id))?>">Sửa</a></th>
                    <th><a href="<?php echo Yii::app()->createUrl('admin/admin/delete',array('id'=>$value->id))?>"onclick="return confirm('bạn có muốn xóa không');">Xóa</a></th>
                    <th><img style="width: 50px; height: 50px" src="<?php echo $value->avatar?>"/> </th>
                    <th><?php echo $value->username ?></th>
                    <th><?php echo $value->password ?></th>
                    <th><?php echo $value->email ?></th>
                    <th><?php echo $value->lever ?></th>
                </tr>
                <?php }?>
                </tbody>
            </table>
        </div>
    </div>